home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / graphics / gnuplot / gnuplot-3.7.1src / gnuplot-3.7.1 / ansichek.h < prev    next >
C/C++ Source or Header  |  1999-11-29  |  3KB  |  94 lines

  1. /* $Id: ansind not void *
  2.  * 1999/08/19 14:42:08 lhecking Exp $ */
  3.  
  4. /* GNUPLOT - ansichek.h */
  5.  
  6. /*[
  7.  * Copyright 1986 - 1993, 1998   Thomas Williams, Colin Kelley
  8.  *
  9.  * Permission to use, copy, and distribute this software and its
  10.  * documentation for any purpose with or without fee is hereby granted,
  11.  * provided that the above copyright notice appear in all copies and
  12.  * that both that copyright notice and this permission notice appear
  13.  * in supporting documentation.
  14.  *
  15.  * Permission to modify the software is granted, but not the right to
  16.  * distribute the complete modified source code.  Modifications are to
  17.  * be distributed as patches to the released version.  Permission to
  18.  * distribute binaries produced by compiling modified sources is granted,
  19.  * provided you
  20.  *   1. distribute the corresponding source modifications from the
  21.  *    released version in the form of a patch file along with the binaries,
  22.  *   2. add special version identification to distinguish your version
  23.  *    in addition to the base release version number,
  24.  *   3. provide your name and address as the primary contact for the
  25.  *    support of your modified version, and
  26.  *   4. retain our contact information in regard to use of the base
  27.  *    software.
  28.  * Permission to distribute the released version of the source code along
  29.  * with corresponding source modifications in the form of a patch file is
  30.  * granted with same provisions 2 through 4 for binary distributions.
  31.  *
  32.  * This software is provided "as is" without express or implied warranty
  33.  * to the extent permitted by applicable law.
  34. ]*/
  35.  
  36.  
  37. /* figure out if we can handle ANSI prototypes
  38.  * We invent and use ANSI_C rather than using __STDC__ directly
  39.  * because some compilers (eg MS VC++ 4.1) switch off __STDC__
  40.  * when extensions are enabled, but if extensions are disabled,
  41.  * the standard headers cause compile errors. We can -DANSI_C
  42.  * but -D__STDC__ might confuse headers
  43.  */
  44.  
  45. #ifndef ANSI_CHECK_H
  46. # define ANSI_CHECK_H
  47.  
  48. # if defined(__STDC__) && __STDC__
  49. #  ifndef ANSI_C
  50. #   define ANSI_C
  51. #  endif
  52. # endif /* __STDC__ */
  53.  
  54. # ifndef HAVE_CONFIG_H
  55. /* Only relevant for systems which don't run configure */
  56.  
  57. /* are all these compiler tests necessary ? - can the makefiles not
  58.  * just set ANSI_C ?
  59.  */
  60.  
  61. #  if defined(ANSI_C) || defined(__TURBOC__) || defined (__PUREC__) || defined (__ZTC__) || defined (_MSC_VER) || (defined(OSK) && defined(_ANSI_EXT))
  62. #   ifndef PROTOTYPES
  63. #    define PROTOTYPES
  64. #   endif
  65. #   ifndef HAVE_STRINGIZE
  66. #    ifndef VAXC       /* not quite ANSI_C */
  67. #     define HAVE_STRINGIZE
  68. #    endif
  69. #   endif
  70. #  endif /* ANSI_C ... */
  71.  
  72. #  ifndef ANSI_C
  73. #   define const
  74. #  endif
  75.  
  76. # endif /* !HAVE_CONFIG_H */
  77.  
  78. /* used to be __P but it was just too difficult to guess whether
  79.  * standard headers define it. It's not as if the defn is
  80.  * particularly difficult to do ourselves...
  81.  */
  82. # ifdef PROTOTYPES
  83. #  define __PROTO(proto) proto
  84. # else
  85. #  define __PROTO(proto) ()
  86. # endif
  87.  
  88. /* generic pointer type. For old compilers this has to be changed to char *,
  89.  * but I don't know if there are any CC's that support void and not void *
  90.  */
  91. #  define generic void
  92.  
  93. #endif /* ANSI_CHECK_H */
  94.